<?php

namespace api\models;

use Yii;

/**
 * This is the model class for table "apply".
 *
 * @property int $id
 * @property int $user_id
 * @property int $party_id
 * @property string $party_title
 * @property int $set_id
 * @property string $set_title
 * @property string $jobs 应聘岗位
 * @property string $offer 录用岗位
 * @property string $admin_remark 后台备注
 * @property int $score1 工作态度
 * @property int $score2 工作能力
 * @property int $score3 工作前景
 * @property string $created_at
 * @property int $confirm_status 确认状态
 */
class Apply extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'apply';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['user_id', 'party_id', 'set_id'], 'required'],
            [['user_id', 'party_id', 'set_id', 'score1', 'score2', 'score3', 'confirm_status'], 'integer'],
            [['created_at'], 'safe'],
            [['party_title', 'set_title'], 'string', 'max' => 64],
            [['jobs', 'admin_remark'], 'string', 'max' => 128],
            [['offer'], 'string', 'max' => 32],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'party_id' => 'Party ID',
            'party_title' => 'Party Title',
            'set_id' => 'Set ID',
            'set_title' => 'Set Title',
            'jobs' => 'Jobs',
            'offer' => 'Offer',
            'admin_remark' => 'Admin Remark',
            'score1' => 'Score1',
            'score2' => 'Score2',
            'score3' => 'Score3',
            'created_at' => 'Created At',
            'confirm_status' => 'Confirm Status',
        ];
    }
}
